﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace SqlMapper.SqlElements
{
    /// <summary>
	/// Represent an isLessEqual sql tag element.
	/// </summary>
	[Serializable]
    [XmlRoot("isLessEqual", Namespace = "http://ibatis.apache.org/mapping")]
    public sealed class IsLessEqual : Conditional
    {
        public override bool IsCondition(string value)
        {
            return string.Compare(value, CompareValue) <= 0;
        }
    }
}
